#!/bin/sh

if [ "$(id -u)" -ne 0 ]; then
	echo "This script must be run as root"
	exit 1
fi

install -vm 0755 spotfile "${DESTDIR}/usr/bin/spotfile"

mkdir -pv "${DESTDIR}/usr/share/spotfile"
install -vm 0644 spotfile.m4 "${DESTDIR}/usr/share/spotfile/spotfile.m4"
